package com.wzt.car.domain;


import com.wzt.base.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author wzt
 * @since 2022-09-05
 */
public class Type extends BaseDomain {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String icon;
    private Integer index;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    /**
     * 父类型
     */
    private Type parent;
    /**
     * 子类型
     */
    private List<Type> children = new ArrayList<>(5);

    public Type getParent() {
        return parent;
    }

    public void setParent(Type parent) {
        this.parent = parent;
    }

    public List<Type> getChildren() {
        return children;
    }

    public void setChildren(List<Type> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "Type{" +
                ", id=" + id +
                ", name=" + name +
                ", icon=" + icon +
                ", index=" + index +
                ", description=" + description +
                ", pid=" + pid +
                "}";
    }
}
